<template>
  <Demo msg="hello" type="2" @hello="sayHello">
    <template v-slot:qwq>
      <div>
        111
      </div>
    </template>
  </Demo>
</template>

<script>
import Demo from './components/Demo.vue'
export default {
  name: 'App',
  components: {
    Demo
  },
  setup() {
    function sayHello(value) {
      alert(`传来的参数是${value}`)
    }

    return {
      sayHello
    }
  }
}
</script>

<style>
</style>
